/* $Id: UserServiceSecurityDomainObjectManagerImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.domain.manager.provider;

import java.util.Collection;
import java.util.List;

import ae.pcfc.etks.online.common.dao.UserServiceSecurityDAO;
import ae.pcfc.etks.online.common.domain.UserServiceSecurity;
import ae.pcfc.etks.online.common.domain.manager.UserServiceSecurityDomainObjectManager;
import ae.pcfc.etks.online.common.exception.LookupException;
import ae.pcfc.etks.online.common.exception.PersistenceException;

public class UserServiceSecurityDomainObjectManagerImpl implements UserServiceSecurityDomainObjectManager{

	private UserServiceSecurityDAO userServiceSecurityDAO;
	
	/**
	 * setUserServiceSecurityDAO
	 * 
	 * @param userServiceSecurityDAO
	 * void
	 */
	public void setUserServiceSecurityDAO(
			UserServiceSecurityDAO userServiceSecurityDAO) {
		this.userServiceSecurityDAO = userServiceSecurityDAO;
	}

	/**
	 * add
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#add(java.lang.Object)
	 * 
	 */
	public <T> void add(T obj) throws PersistenceException {
		
		this.userServiceSecurityDAO.add((UserServiceSecurity) obj);
	}

	/**
	 * update
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#update(java.lang.Object)
	 * 
	 */
	public <T> void update(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	/**
	 * delete
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserServiceSecurityDomainObjectManager#delete(java.lang.Object)
	 * 
	 */
	public <T> void delete(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		this.userServiceSecurityDAO.delete((UserServiceSecurity)obj);
	}

	/**
	 * findByPrimaryKey
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findByPrimaryKey(java.lang.String)
	 * 
	 */
	public <T> T findByPrimaryKey(String id) throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findAll
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findAll()
	 * 
	 */
	public <T> Collection<T> findAll() throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}
	
	/**
	 * findByUserName
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserServiceSecurityDomainObjectManager#findByUserName(java.lang.String)
	 * 
	 */
	public List<UserServiceSecurity> findByUserName(String username) throws LookupException {
		// TODO Auto-generated method stub
		return (List<UserServiceSecurity> ) this.userServiceSecurityDAO.findByUserName(username);
	}
	/**
	 * findByUserNameWithoutDefault
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserServiceSecurityDomainObjectManager#findByUserNameWithoutDefault(java.lang.String, java.lang.String[])
	 * 
	 */
	public List<UserServiceSecurity> findByUserNameWithoutDefault(String username, String[] arrDefaults) throws LookupException {
		return (List<UserServiceSecurity> ) this.userServiceSecurityDAO.findByUserNameWithoutDefault(username, arrDefaults);
		
	}

	/**
	 * findUserServiceSecurity
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserServiceSecurityDomainObjectManager#findUserServiceSecurity(ae.pcfc.etks.online.common.domain.UserServiceSecurity)
	 * 
	 */
	public List<UserServiceSecurity> findUserServiceSecurity(UserServiceSecurity userServiceSecurity) {
		// TODO Auto-generated method stub
		return (List<UserServiceSecurity> ) this.userServiceSecurityDAO.findUserServiceSecurity(userServiceSecurity);

	}

}
